which python3.7
if [[ $? = 0 ]];then
    echo python3.7 exists
    return 0
fi
[ ! -f Python-3.7.5.tgz ] && wget https://mirrors.huaweicloud.com/python/3.7.5/Python-3.7.5.tgz --no-check-certificate
tar xvf Python-3.7.5.tgz
cd Python-3.7.5
./configure --prefix=/usr/local/python3.7.5 --enable-shared
make -j4
make install
python_path='/usr/lib64/python3.7/site-packages/:/usr/lib/python3.7/site-packages:/usr/lib64/python3.7/lib-dynload'
if [[ -z $(cat ~/.bashrc |grep ${python_path}) ]];then
    echo "set PYTHONPATH"
    echo "export PYTHONPATH=${python_path}:$PYTHONPATH" >> ~/.bashrc
    source ~/.bashrc
fi
export PATH=/usr/local/python3.7.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/python3.7.5/lib:$LD_LIBRARY_PATH
python3.7 --version
pip3.7 --version
cd ../